﻿@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link href="~/static/h-ui/css/H-ui.min.css" rel="stylesheet" />
    <link href="~/static/h-ui.admin/css/H-ui.login.css" rel="stylesheet" />
    <link href="~/static/h-ui.admin/css/style.css" rel="stylesheet" />
    <link href="~/lib/Hui-iconfont/1.0.8/iconfont.css" rel="stylesheet" />
    <script src="~/lib/My97DatePicker/4.8/WdatePicker.js"></script>
    <script src="~/lib/jquery/1.9.1/jquery.min.js"></script>
    <title></title>
    <meta name="keywords">
    <meta name="description">
</head>
<body>
    <div class="page-container">
        <article class="page-container">
            <form class="form form-horizontal" id="form-article-add">
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2">学院：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <span class="select-box">
                            <select name="articlecolumn" id="College" class="select" onchange="CollegeChange()">
                                <option value="0">请选择</option>
                                @foreach (var item in ViewBag.College)
                                {
                                    <option value="@item.ID">@item.College_Name</option>
                                }
                            </select>
                        </span>
                    </div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2">方向：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <span class="select-box">
                            <select name="articletype" id="Major" class="select">
                                <option value="0">请选择</option>
                            </select>
                        </span>
                    </div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2">阶段：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <span class="select-box">

                            <select name="articletype" id="Course" class="select">
                                @foreach (var item in ViewBag.Course)
                                {
                                    <option value="@item.ID">@item.Course_Name</option>
                                }
                            </select>
                        </span>
                    </div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2">单元：</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <span class="select-box">
                            <input type="checkbox" value="1" />1&nbsp;&nbsp;单元
                            <input type="checkbox" value="2" />2&nbsp;&nbsp;单元
                            <input type="checkbox" value="3" />3&nbsp;&nbsp;单元
                            <input type="checkbox" value="4" />4&nbsp;&nbsp;单元
                            <input type="checkbox" value="5" />5&nbsp;&nbsp;单元
                            <input type="checkbox" value="6" />6&nbsp;&nbsp;单元
                            <input type="checkbox" value="7" />7&nbsp;&nbsp;单元
                            <input type="checkbox" value="8" />8&nbsp;&nbsp;单元
                            <input type="checkbox" value="9" />9&nbsp;&nbsp;单元
                            <input type="checkbox" value="10" />10&nbsp;&nbsp;单元
                        </span>
                        <span class="select-box">
                            <input type="checkbox" value="11" />11单元
                            <input type="checkbox" value="12" />12单元
                            <input type="checkbox" value="13" />13单元
                            <input type="checkbox" value="14" />14单元
                            <input type="checkbox" value="15" />15单元
                            <input type="checkbox" value="16" />16单元
                            <input type="checkbox" value="17" />17单元
                            <input type="checkbox" value="18" />18单元
                            <input type="checkbox" value="19" />19单元
                            <input type="checkbox" value="20" />20单元
                        </span>
                    </div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2">试卷名称:</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <input type="text" class="input-text" value="" placeholder="试卷名称" id="keywords" name="keywords">
                    </div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2">考试时间</label>
                    <div class="formControls col-xs-8 col-sm-9">
                        <input type="text" onfocus="WdatePicker({ maxDate:'#F{$dp.$D(\'datemax\')||\'%y-%M-%d\'}' })" id="datemin" class="input-text Wdate" style="width:120px;">
                        -
                        <input type="text" onfocus="WdatePicker({ minDate:'#F{$dp.$D(\'datemin\')}',maxDate:'%y-%M-%d' })" id="datemax" class="input-text Wdate" style="width:120px;">
                        <input type="text" class="input-text" style="width:250px" placeholder="" id="" name="">
                        <button type="submit" class="btn btn-success" id="" name=""><i class="Hui-iconfont"></i> 搜记录</button>

                    </div>
                </div>
                <div class="row cl">
                    <label class="form-label col-xs-4 col-sm-2">要上传的试题:</label>
                    <div class="formControls col-xs-1">
                        <input type="button" class="input-text" value="保存试卷">
                    </div>
                </div>
            </form>
        </article>
    </div>
</body>
</html>
<script>
    //根据学院编号获取对应的专业
    function CollegeChange() {
        var collegeID = $("#College").val();
        $.ajax({
            type: "post",
            url: "/Admin/MajorList",
            data: { ID: collegeID },
            success: function (data) {
                if (data.length > 0) {
                    data = eval(data);
                    $("#Major").empty();
                    var html = "";
                    for (var i = 0; i < data.length; i++) {
                        html += "  <option value='" + data[i].ID + "'>" + data[i].Major_Name + "</option>";
                    }
                    $("#Major").append(html);
                }
            }
        });
    }
</script>